package com.pengshun.modules.api.transport.dto;

import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Fourth;
import com.pengshun.modules.api.coal.validator.Second;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class TransportTakeCarriageDto {

    @NotNull(message = "id不能为空", groups = {Fourth.class, Second.class})
    private Long TransportTakeCarriageId;

    @NotNull(message = "接单id不能为空", groups = {First.class})
    private Long transportTakeOrderId;

    private Long userId;

    private  String transportTakeNo;

    @NotNull(message = "状态不能为空", groups = {Fourth.class})
    private  Integer status;

    private Long carOwnerId;

    private String carOwnerNum;

    private String carTypeName;

    private BigDecimal number;
    private BigDecimal mineSendNum;

    private Date createTime;

    private String photo;

}
